package com.gxnzd.communityelderly.controller;

import com.gxnzd.communityelderly.commom.R;
import com.gxnzd.communityelderly.entity.City;
import com.gxnzd.communityelderly.service.CityService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: CityController
 * Package: com.gxnzd.communityelderly.controller
 * Description:
 *
 * @Author 胡海峰
 * @Create 2024/10/5 17:52
 * @Version 1.0
 */
@CrossOrigin
@RestController
@RequestMapping("/City")
public class CityController {
    @Resource
    private CityService cityService;

    //三级联动查询
    @PostMapping("/selectCity")
    public R selectCity(City city) {
        return cityService.getSelectCity(city);
    }

}
